package com.bizimpl;

import java.util.List;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biz.AccpUserBiz;
import com.dao.AccpUserDao;
import com.entity.AccpUser;
@Service
@Transactional
public class AccpUserBizImpl implements AccpUserBiz {
	private AccpUserDao accpUserDao;
	

	public AccpUserDao getAccpUserDao() {
		return accpUserDao;
	}


	public void setAccpUserDao(AccpUserDao accpUserDao) {
		this.accpUserDao = accpUserDao;
	}


	public AccpUser login(AccpUser user) {	
		List<AccpUser> ulist=accpUserDao.getHibernateTemplate().findByExample(user);
		if(ulist.size()==0)			
			return null;
		else
			return ulist.get(0);
	}
}
